﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucListProduct.ascx.cs"
    Inherits="UserControl_ucListProduct" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<div class=" block">
</div>
<div class="Post">
    <div class="Post-tl">
    </div>
    <div class="Post-tr">
    </div>
    <div class="Post-bl">
    </div>
    <div class="Post-br">
    </div>
    <div class="Post-tc">
    </div>
    <div class="Post-bc">
    </div>
    <div class="Post-cl">
    </div>
    <div class="Post-cr">
    </div>
    <div class="Post-cc">
    </div>
    <div class="Post-body">
        <div class="Post-inner">
            <div class="PostContent">
                <h2 style="text-align: center" class="PostHeaderIcon-wrapper">
                    LIST PRODUCTS</h2>
                <asp:TextBox ID="txtProductID" runat="server" Style="display: none"></asp:TextBox>
                <div class="PostHeaderIcons metadata-icons">
                    <div id="message_green" runat="server" style="display: none">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="green-left">
                                    Infomation update sucessfully. <a href="Booking.aspx">New Booking.</a>
                                </td>
                                <td class="green-right">
                                    <a class="close-green">
                                        <img src="image/icon_close_green.gif" alt="" /></a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="PostContent">
                    <asp:HyperLink ID="hyperNew" runat="server" NavigateUrl="~/Admin/AddNewProduct.aspx">Add New</asp:HyperLink>
                    <br />
                    <br />
                    <b>List Product Sell</b><br />
                     <asp:Panel ID="panel" runat="server" Height="300px" ScrollBars="Auto">
                    <asp:GridView ID="grdProduct" Width="100%" runat="server" AutoGenerateColumns="False"
                        CssClass="grd" OnPageIndexChanging="grdProduct_PageIndexChanging" style="margin-bottom:20px;">
                        <Columns>
                            <asp:BoundField DataField="ProductID" HeaderText="ID" />
                            <asp:HyperLinkField DataNavigateUrlFields="ProductID" DataNavigateUrlFormatString="~/Admin/AddNewProduct.aspx?idProd={0}"
                                DataTextField="ProductName" HeaderText="Name" />
                            <asp:HyperLinkField DataNavigateUrlFields="IDPhoneBrand" DataTextField="BrandName"
                                HeaderText="Manufacture" DataNavigateUrlFormatString="~/Admin/PhoneBrand.aspx?idBrand={0}" />
                            <asp:BoundField DataField="Model" HeaderText="Model" />
                            <asp:BoundField DataField="Cost" HeaderText="Cost" />
                            <asp:BoundField DataField="RRP" HeaderText="RRP" />
                            <asp:BoundField DataField="ProductDescription" HeaderText="Description" />
                            <asp:BoundField DataField="QuantityOnHand" HeaderText="Quantity" />
                            <asp:TemplateField HeaderText="Delete">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnModelDelete" runat="server" CausesValidation="false" CommandName="delete"
                                        CommandArgument='<%# Eval("ProductID") %>' ImageUrl="~/Admin/image/del.gif" OnClick="btnModelDelete_Click" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="60px" />
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle CssClass="grdHeader" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle CssClass="grdAlternateRow" />
                        <PagerSettings PageButtonCount="6" />
                        <RowStyle CssClass="grdRow" />
                    </asp:GridView>
                   </asp:Panel>
                   <b >List Part</b>
                    <asp:Panel ID="panel1" runat="server" Height="300px" ScrollBars="Auto">
                    <asp:GridView ID="grdPart" Width="100%" runat="server" AutoGenerateColumns="False"
                        CssClass="grd">
                        <Columns>
                            <asp:BoundField DataField="ProductID" HeaderText="ID" />
                            <asp:HyperLinkField DataNavigateUrlFields="ProductID" DataNavigateUrlFormatString="~/Admin/AddNewProduct.aspx?idProd={0}"
                                DataTextField="ProductName" HeaderText="Name" />
                            <asp:HyperLinkField DataNavigateUrlFields="IDPhoneBrand" DataTextField="BrandName"
                                HeaderText="Manufacture" DataNavigateUrlFormatString="~/Admin/PhoneBrand.aspx?idBrand={0}" />
                            <asp:BoundField DataField="Model" HeaderText="Model" />
                            <asp:BoundField DataField="Cost" HeaderText="Cost" />
                            <asp:BoundField DataField="RRP" HeaderText="RRP" />
                            <asp:BoundField DataField="ProductDescription" HeaderText="Description" />
                            <asp:BoundField DataField="QuantityOnHand" HeaderText="Quantity" />
                            <asp:TemplateField HeaderText="Delete">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnDelete" runat="server" CausesValidation="false" CommandName="deletePart"
                                        CommandArgument='<%# Eval("ProductID") %>' ImageUrl="~/Admin/image/del.gif" OnClick="btnDelete_Click"
                                        Style="height: 16px" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="60px" />
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle CssClass="grdHeader" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle CssClass="grdAlternateRow" />
                        <PagerSettings PageButtonCount="6" />
                        <RowStyle CssClass="grdRow" />
                    </asp:GridView>
                    </asp:Panel>
                </div>
                <div class="cleared">
                </div>
                <div class="PostFooterIcons metadata-icons">
                </div>
            </div>
        </div>
        <div class="cleared">
        </div>
    </div>
</div>
</div>
<style type="text/css">
    .style1
    {
        height: 25px;
    }
    .style3
    {
        text-align: right;
    }
</style>
<div class=" block">
</div>
